package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.CompanyEvents;

/**
 * 对象功能:  公司大事件详情
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/4/18 10:29
 */
public class CompanyEventsPagerActivity extends BasePagerActivity {

  private CompanyEvents content;

  @Override protected void onCreate(Bundle arg0) {

    content =
        (CompanyEvents) getIntent().getSerializableExtra(CompanyEventsListFragment.EXTRA_VALUE);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {
    return CompanyEventsDetailFragment.newInstance(content);
  }

  @Override protected Fragment createFragmentTwo() {
    return CompanyEventsChildListFragment.newInstance(content);
  }

  @Override protected int[] createTitle() {
    return new int[] { R.string.companyEvents, R.string.customAttributes };
  }
}
